package com.yuelan.system.api;

import com.yuelan.common.core.constant.ServiceNameConstants;
import com.yuelan.common.core.web.domain.AjaxResult;
import com.yuelan.system.api.domain.RentPayOrder;
import com.yuelan.system.api.factory.RemoteOrderFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description: 订单服务
 * @Author: ZhaoYi
 * @date: 24-6-25 16:20
 */
@FeignClient(contextId = "remoteOrderService", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = RemoteOrderFallbackFactory.class)
public interface RemoteOrderService {

    @PostMapping(value = "/pay/rent")
    public String rentOrder(@RequestBody RentPayOrder rentPayOrder);

}
